package com.orange.quickback.system.entities.user.manage;

import com.orange.quickback.system.entities.QBootObject;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Entity
@Table(name = "q_boot_role")
@Data
@NoArgsConstructor
public class QBootRole extends QBootObject {
    @Column(name = "role_name", nullable = false, unique = true)
    private String roleName;
    @Column(name = "role_name_zh", nullable = false)
    private String roleNameZh;

    public QBootRole(Long id,String roleName, String roleNameZh) {
        super.setId(id);
        this.roleName = roleName;
        this.roleNameZh = roleNameZh;
    }
}
